<?php $website_url = Configure::read('Website.url'); ?>
<script type="text/javascript">
    //Initialize 2nd demo:
    ddaccordion.init({
        headerclass: "technology", //Shared CSS class name of headers group
        contentclass: "thelanguage", //Shared CSS class name of contents group
        revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
        mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
        collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
        defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
        onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
        animatedefault: false, //Should contents open by default be animated into view?
        persiststate: false, //persist state of opened contents within browser session?
        toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
        togglehtml: ["prefix", " Write a Review", " Not Interesting "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
        animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
        oninit:function(expandedindices){ //custom code to run when headers have initalized
            //do nothing
        },
        onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
            //do nothing
        }
    })

</script>
<script>
    $(document).ready(function(){
        $('.item_list_z  #OptionChangeOnProduct1').change(function(){
            var val_1 = $(this).attr('value');
            var val_2 = $('.item_list_z  #OptionChangeOnProduct2').attr('value');
            if(val_1=='' || val_1=='0')
            {
                var current_name = $(this).attr('class');
                alert('Please choose correct Value for'+current_name+'');
                return false;
            }
            else
            {
                if(val_2==''|| val_2=='0')
                {
                    var current_name_2 = $('.item_list_z  #OptionChangeOnProduct2').attr('class');
                    alert('Please choose correct Value.'+current_name_2+'');
                    return false;
                }
                else{
                    var product_id = $('.productidlive').attr('value');
                    var combile = val_1+'-'+val_2; 
                    //alert(combile);
                    var dataString = 'option_value='+combile+'&product_id='+product_id+'';
                    $.ajax
                    ({
                        type: "GET",
                        url: "<?php
echo $website_url . 'Categories/get_quantities';
?>",
                        data: dataString,
                        cache: false,
                        success: function(html)
                        {
                            $('#qty').html(html);
                        }
                    });
                }
            }
        });
        $('.item_list_z  #OptionChangeOnProduct2').change(function(){
            var val_1_1 = $(this).attr('value');
            var val_2_2 = $('.item_list_z  #OptionChangeOnProduct1').attr('value');
            if(val_1_1=='' || val_1_1=='0')
            {
                var current_name_2_1 = $(this).attr('class');
                alert('Please choose correct Value for'+current_name_2_1+'');
                return false;
            }
            else
            {
                if(val_2_2==''|| val_2_2=='0')
                {
                    var current_name_2_2 = $('.item_list_z  #OptionChangeOnProduct1').attr('class');
                    alert('Please choose correct Value.'+current_name_2_2+'');
                    return false;
                }
                else{
                    var combile_2_2 = val_2_2+'-'+val_1_1; 
                    var product_id = $('.productidlive').attr('value');
                    var dataString = 'option_value='+combile_2_2+'&product_id='+product_id+'';
                    $.ajax
                    ({
                        type: "GET",
                        url: "<?php
echo $website_url . 'Categories/get_quantities';
?>",
                        data: dataString,
                        cache: false,
                        success: function(html)
                        {
                            $('#qty').html(html);
                        }
                    });
                }
            }
        });
        $('input').bind('keypress', function(e) {
            var its_max = $(this).attr('max');
            var its_val = $(this).attr('value');
            if(its_max<its_val){ alert('You cant exceed the remaining Quanity.');
            }
        });
		
        $('.helpfull').click(function(){
			
            var helpful = $(this).attr('accesskey');
            var product_review_id = $(this).attr('coords');
            var idp = $(this).parent('p').attr('id'); 
            //alert(idp);
            //return false;
            var dataString = 'helpful='+helpful+'& product_review_id='+product_review_id;
            $.ajax
            ({
                type: "POST",
                url: "<?php
echo $website_url . 'products/product_review_helpfull/';
?>",
                data: dataString,
                cache: false,
                success: function(html)
                {
                    $('#'+idp).html(html);
                }
            });
				
        });
    });

</script>

<div id="content">
    <?php
    if (isset($product_detail) and ($product_detail)) {
        //pr($product_detail);
        //exit;
        ?>
        <div class="cate_top"> HOME &raquo; <?php echo $html->link("" . $product_detail['Product']['category']['name'], array('controller' => 'products', 'action' => 'index', $product_detail['Product']['category']['slug'])); ?> </div>
        <div class="cate_top">
            <h6 class="head_title_prod"><?php echo $product_detail['Product']['name']; ?> </h6>
            <div class="def_div"> <span class="f_right"> <span class='st_sharethis_hcount' displayText='ShareThis'></span> <span class='st_facebook_hcount' displayText='Facebook'></span> <span class='st_twitter_hcount' displayText='Tweet'></span> <span class='st_linkedin_hcount' displayText='LinkedIn'></span> <span class='st_email_hcount' displayText='Email'></span> </span> </div>
        </div>
        <div class="item_1">
            <div class="item_1_left item-box grid_6 alpha">
                <?php
                $rel_images = $product_detail['Product']['rel_img'];

                $rel_images_exp = explode(',', $rel_images);
                //pr($rel_images_exp);
                //exit;
                if (isset($rel_images_exp[0]) and ($rel_images_exp[0])) {
                    $height = "";
                } else {
                    $height = "";
                }

                if (isset($product_detail['Product']['img']) and ($product_detail['Product']['img'])) {
                    echo $html->image('Product/' . $product_detail['Product']['img'], array('height' => $height, 'width' => '371', 'class' => 'variable_image item-3 drop-shadow"', 'alt' => ""));
                }
                ?>
                <?php
                if (isset($rel_images_exp[0]) and ($rel_images_exp[0])) {
                    echo '<div class="thumbs">';
                    foreach ($rel_images_exp as $rel_imag) {
                        echo $html->image('Product/' . $product_detail['Product']['id'] . '/' . $rel_imag, array('width' => '90', 'height' => '83'));
                    }
                    echo '</div>';
                }
                ?>
            </div>
            <div class="item_right">
                <div class="item_right1">
                    <div class="def_div f_left">
                        <h2 >By
                            <?php
                            echo $html->link($product_detail['Product']['Brand']['name'], array('controller' => 'products', 'action' => 'index',
                                "category_slug" => "", "index" => "", "brand_slug" => $product_detail['Product']['Brand']['slug']), array('class' => 'blue_link'));
                            ?>
                        </h2>
                    </div>
                    <div class="def_div f_left">
                        <div class="item_list_z ">
                            <ul>
                                <li><b>Listing Price : </b><span class="over_line">$<?php echo $product_detail['Product']['msrp']; ?></span></li>
                                <li><b ><span class="font_16">Price : </span> <span class="red font_16">$<?php echo $product_detail['Product']['MasterProduct']['price']; ?></span> </b> &amp; this item ships for <b>FREE with Super Saver Shipping</b><a href="#" class="brown_link"></a>.</li>
                                <li><b>You save : </b><span class="red">
                                        <?php __catculate_saving($product_detail['Product']['msrp'], $product_detail['Product']['MasterProduct']['price']); ?>
                                    </span></li>
                                <?php
                                if (isset($options) and ($options)) {
                                    $x = 1;
                                    echo '<input type="hidden" value="' . $product_detail['Product']['id'] . '" class="productidlive">';
                                    foreach ($options as $option) {
                                        if (isset($option['type']) and ($option['type'] == 'select')) {
                                            ?>
                                            <li class="option"> <b><?php echo $option['name']; ?> : </b>
                                                <?php
                                                // echo $this->Form->input('Product.option_id', 
                                                // array('type' => 'select','id'=>'OptionChange', 'options'=>$option['Results'],
                                                // 'name'=>'data[Product][option][option_value_id]','class'=>'','empty'=>false,'label' =>false)
                                                //  );
                                                ?>
                                                <div class="input select">

                                                    <select class="<?php echo $option['name']; ?>" id="OptionChangeOnProduct<?php echo $x; ?>"
                                                            name="data[Product][option][option_value_id]">
                                                        <option value="0">Select</option>
                                                        <?php
                                                        if (isset($option['options']) and ($option['options'])):
                                                            foreach ($option['options'] as $optionValue) {
                                                                /* if(isset($optionValue['OptionValue']['price']) and ($optionValue['OptionValue']['price']))
                                                                  {
                                                                  $price = $optionValue['OptionValue']['price'];
                                                                  }
                                                                  else
                                                                  {
                                                                  $price = "";
                                                                  } */
                                                                ?>
                                                                <option  class="<?php echo $optionValue; ?>" value="<?php echo $optionValue; ?>"> <?php echo $optionValue; ?> </option>
                                                                <?php
                                                            }
                                                        endif;
                                                        ?>
                                                    </select>
                                                </div>
                                            </li>
                                            <?php
                                        }
                                        $x++;
                                    }
                                }
                                ?>
                                <li class="option" id="qty"> 
                                </li>
                            </ul>
                        </div>
                        <div class="common_border"></div>
                    </div>
                    <div class="item_right2">
                        <h2><span class="blue"><?php echo $product_detail['Product']['stock_detail']; ?></span></h2>
                        <br />
                        <p> Ships from and sold by 
                            <!--<a href="javascript:void(0);" class="brown_link">
                            <?php //echo $product_detail['Product']['MasterProduct']['Seller']['bs_dis_name']; ?>
                              </a>-->
                            <?php
                            echo $html->link($product_detail['Product']['MasterProduct']['Seller']['bs_dis_name'], array('controller' => 'sellers', 'action' => 'store', $product_detail['Product']['MasterProduct']['Seller']['merchant_token']), array('class' => 'brown_link'));
                            ?>
                        </p>
                    </div>
                    <div class="item_right2">
                        <div class="rating_<?php echo $product_detail['Product']['rating']; ?>  f_left"></div>
                        &nbsp; &nbsp;(<?php echo $product_detail['Product']['reviews']; ?> reviews) </div>
                    <div class="item_right2">
                        <?php
                        $date = mktime(0, 0, 0, date("m"), date("d") + 2, date("Y"));
                        ?>
                        <b>Want it delivered <?php echo date("D M d", $date); ?>?</b> Order it in the next <span class="blue">17 hours and 27 minutes</span>, and choose <b>One-Day Shipping</b> at checkout. <a href="#" class="brown_link">Details</a><br />
                        <?php
                        if (isset($product_detail['Product']['offers']) and ($product_detail['Product']['offers'])) {
                            echo "<ul class='def_ul'>";
                            foreach ($product_detail['Product']['offers'] as $offer) {
                                //pr($offer);
                                //exit;
                                echo "<li>";
                                $slug = str_replace(" ", "_", strtolower("" . $offer['name'] . ""));
                                echo $html->link($offer['count'], array('controller' => 'products', 'action' => 'offer_listing',
                                    $product_detail['Product']['wisn'], $slug), array('class' => 'blue_link', 'escape' => false));
                                echo ' from <span class="red">$' . $offer[$offer['name']] . '</span>';

                                echo "</li>";
                            }
                            echo "</ul>";
                        }
                        ?>
                        <!--	<ul class="def_ul">
                  <li>Precise Swiss-Quartz movement</li>
                  <li>Scratch-resistant-sapphire crystal</li>
                  <li>Case diameter: 39.8 mm</li>
                  </ul>
                  
                        -->
                        <div class="common_border1"></div>
                    </div>
                    <div class="def_div f_left"> <?php
                    echo $html->link("Add to cart", array('controller' => 'products', 'action' => 'cart', "add",
                        $product_detail['Product']['slug']), array('class' => "ibtn"));
                        ?>
                        <?php
                        echo $html->link("Add to wishlist", array('controller' => 'products',
                            'action' => 'add_to_wishlist', $product_detail['Product']['slug']), array('class' => "ibtn2"));
                        ?>
                    </div>
                </div>
                <div class="item2_main">
                    <?php
                    echo $html->image('ads_banner.png', array('height' => "", 'width' => '250', 'class' => '', 'alt' => ""));
                    ?>
                    <div class="seller_right_dec">
                        <h2><b>Recent Customer Reviews</b></h2>
                        <?php
                        if (isset($ProductReviews) and ($ProductReviews)) {
                            $x = 1;
                            foreach ($ProductReviews as $ProductReview) {
                                if ($x < 3) {
                                    ?>
                                    <div class="def_div f_left">
                                        <div class="pad_10"></div>
                                        <p><span class="blue font_16"><b><?php echo $ProductReview['ProductReview']['title']; ?></b></span><br />
                                            <span class="gray_comment"> <b>by <?php echo $ProductReview['ProductReview']['user']['name']; ?></b> on <?php echo date("d/m/y", strtotime($ProductReview['ProductReview']['created'])); ?> </span> <?php echo substr($ProductReview['ProductReview']['review'], 0, 80); ?> <a href="#" class="brown_link f_right">read more</a></p>
                                        <div class="common_border"></div>
                                    </div>
                                    <?php
                                }
                                $x++;
                            }
                        }
                        ?>
                    </div>
                    <div class="seller_right_dec">
                        <h2><b>More Buying Choices</b></h2>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="">
                            <?php
                            foreach ($offer_list as $offer) {
                                ?>
                                 <!--<p><span class="font_16 blue" style="text-transform:capitalize;"><b><?php //echo $offer['name'];  ?></b></span></p>-->
                                <?php
                                $offer_name_list = $offer[$offer['name']];
                                //pr($offer_name_list);
                                //exit;
                                if (isset($offer_name_list) and ($offer_name_list))
                                    $cv = 1;
                                foreach ($offer_name_list as $offerN) {
                                    if ($cv) {
                                        ?>
                                        <tr >
                                            <td width="60%" style="border-bottom:solid thin #ccc;">
                                                <span class=""><?php echo $offerN['MasterProduct']['Seller']['bs_dis_name']; ?> 
                                                    ( <span style="text-transform:capitalize; color:#0A68AD"><?php echo $offer['name']; ?> </span>)
                                                </span><br />
                                                <span class="text_def_13 red"><b>$<?php echo $offerN['MasterProduct']['price']; ?></b></span>
                                            </td>
                                            <td width="40%" style="border-bottom:solid thin #ccc;">	
                                                <?php
                                                //echo  $selle_token;
                                                $selle_token = __get_seller_token($offerN['MasterProduct']['seller_id']);
                                                echo $html->link("Add to cart", array('controller' => 'products', 'action' => 'cart', "add",
                                                    $product_detail['Product']['slug'], $selle_token), array('class' => "small_add2cart"));
                                                ?>
                                            </td>
                                        </tr>

                                        <?php
                                    }
                                    $cv++;
                                }
                                ?>
                                <?php
                            }
                            ?> 
                            <tr>
                                <td colspan="2">
                                    <?php
                                    if (isset($product_detail['Product']['offers']) and ($product_detail['Product']['offers'])) {
                                        echo "<ul class='def_ul'>";
                                        $i = 1;
                                        foreach ($product_detail['Product']['offers'] as $offer) {
                                            if ($i == 1) {
                                                echo "<li>";
                                                $slug = str_replace(" ", "_", strtolower("" . $offer['name'] . ""));
                                                echo $html->link($offer['count'], array('controller' => 'products', 'action' => 'offer_listing',
                                                    $product_detail['Product']['wisn'], $slug), array('class' => 'blue_link', 'escape' => false));
                                                echo ' from <span class="red">$' . $offer[$offer['name']] . '</span>';

                                                echo "</li>";
                                            }
                                            $i++;
                                        }
                                        echo "</ul>";
                                    }
                                    ?>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div class="def_div f_left">
                <div class=" pad_10"></div>
                <div id="TabbedPanels1" class="TabbedPanels">
                    <ul class="TabbedPanelsTabGroup">
                        <li class="TabbedPanelsTab" tabindex="1">Product Description </li>
                        <li class="TabbedPanelsTab" tabindex="2">Product Specifications</li>
                        <li class="TabbedPanelsTab" tabindex="3">Product Details</li>
                        <li class="TabbedPanelsTab" tabindex="4">Customer Reviews</li>
                    </ul>
                    <div class="TabbedPanelsContentGroup">
                        <div class="TabbedPanelsContent">
                            <div class="prod_des_overview"> <?php echo $product_detail['Product']['description']; ?> </div>
                        </div>
                        <div class="TabbedPanelsContent"> 
                            <!--Specification Will be come here-->
                            <?php
                            if (isset($Special_Specifications) and ($Special_Specifications)) {
                                echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" id="specificat" style="width:100%;"><tr><td>';
                                foreach ($Special_Specifications as $Special_ATTRGRP) {
                                    echo "<div class='GroupAttr'>" . $Special_ATTRGRP['AttrGroup']['name'] . "</div>";
                                    if (isset($Special_ATTRGRP['AttrGroup']['Attributes']) and ($Special_ATTRGRP['AttrGroup']['Attributes'])) {
                                        foreach ($Special_ATTRGRP['AttrGroup']['Attributes'] as $arrbute) {
                                            if (isset($arrbute['Specifications']) and ($arrbute['Specifications'])) {
                                                foreach ($arrbute['Specifications'] as $specification) {
                                                    echo "<div class='spc_key'>" . $specification['Specification']['key'] . "</div>
													     <div class='spc_value'>" . $specification['Specification']['value'] . "</div>
														 <div class='common_border'></div>
														 <div class='clear'></div>";
                                                }
                                            }
                                        }
                                    }
                                }
                                echo' </td></tr></table>';
                            }
                            ?>


                            <?php
                            /* if(isset($specifications) and ($specifications))
                              {
                              echo ' <table width="100%" border="0" cellspacing="0" cellpadding="0" id="specificat">';
                              foreach($specifications as $specification)
                              {
                              //pr($specification);
                              //exit;
                              foreach($specification as $spec)
                              {
                              ?>
                              <tr>
                              <td width="40%"><b><?php echo $spec['Specification']['key']; ?> :</b></td>
                              <td width="50%"><?php echo $spec['Specification']['value']; ?></td>
                              </tr>
                              <?php
                              }
                              }
                              echo' </table>';
                              } */
                            ?>
                        </div>
                        <div class="TabbedPanelsContent">
                            <div class="prod_detail_main"> <span>
                                    <div class="def_div f_left">
                                        <div class="width_40 f_left"><b>Shipping Weight :</b></div>
                                        <div class="width_60 f_right"><?php echo $product_detail['Product']['weight']; ?><a href="#">(View shipping rates and policies)</a></div>
                                    </div>
                                    <div class="common_border"></div>
                                    <div class="def_div f_left">
                                        <div class="width_40 f_left"><b>Shipping :</b></div>
                                        <div class="width_60 f_right"><?php echo $product_detail['Product']['MasterProduct']['shipping_method']; ?></div>
                                    </div>
                                    <div class="common_border"></div>
                                    <div class="def_div f_left">
                                        <div class="width_40 f_left"><b>WSIN  : </b></div>
                                        <div class="width_60 f_right"><?php echo $product_detail['Product']['wisn']; ?></div>
                                    </div>
                                    <div class="common_border"></div>
                                    <div class="def_div f_left">
                                        <div class="width_40 f_left"><b>Item model number: </b></div>
                                        <div class="width_60 f_right"><?php echo $product_detail['Product']['p_model']; ?></div>
                                    </div>
                                    <div class="common_border"></div>
                                    <!--<div class="def_div f_left">
                                      <div class="width_40 f_left"><b>Amazon Best Sellers Rank : </b></div>
                                      <div class="width_60 f_right">#30 in Watches <a href="#" >(See Top 100 in Watches) </a><br />
                                        #30 in <a href="#" class="blue_link">Watches </a><a href="#" >(Fashion Watches) </a><br />
                                        #30 in <a href="#" class="blue_link">Watches </a> <a href="#" >(Sport Watches) </a></div>
                                    </div>-->
                                </span> </div>
                        </div>
                        <div class="TabbedPanelsContent">
                            <?php
                            $user_id = $this->Session->read('Auth.User.id');
                            if (isset($user_id) and ($user_id)) {
                                ?>
                                <div class="cust_review_pannel"> <a href="#" class="next_link f_right technology">&nbsp;</a> </div>
                                <?php echo $form->create('Product', array('action' => 'product_review', 'method' => 'post', 'class' => 'mws-form')); ?> <?php echo $this->Form->input('ProductReview.wisn', array('type' => 'hidden', 'value' => $product_detail['Product']['wisn'], 'label' => false)); ?> <?php echo $this->Form->input('ProductReview.slug', array('type' => 'hidden', 'value' => $product_detail['Product']['slug'], 'label' => false)); ?>
                                <div class="cust_review_pannel bgcolor_gary thelanguage">
                                    <h2>Write a Review</h2>
                                    <div class="width_79 f_left">
                                        <div class="acc_form_1">Title :</div>
                                        <div class="acc_form_2"> <?php echo $this->Form->input('ProductReview.title', array('type' => 'text', 'value' => '', 'label' => false)); ?> </div>
                                    </div>
                                    <div class="width_79 f_left">
                                        <div class="acc_form_1">Rating :</div>
                                        <div class="acc_form_2">
                                            <div class="right_full_blue_matt_20">
                                                <input id="Radio10" type="radio"  value="1" class="star" name="data[ProductReview][rating]"/>
                                                <input id="Radio20" type="radio" value="2" class="star" name="data[ProductReview][rating]"/>
                                                <input id="Radio30" type="radio" value="3" class="star" name="data[ProductReview][rating]"/>
                                                <input id="Radio40" type="radio" value="4" class="star" name="data[ProductReview][rating]"/>
                                                <input id="Radio50" type="radio" value="5" class="star" name="data[ProductReview][rating]" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="width_79 f_left">
                                        <div class="acc_form_1">Description :</div>
                                        <div class="acc_form_2">
                                            <?php
                                            echo $this->Form->input('ProductReview.review', array('type' => 'teatarea', 'rows' => '5', 'cols' => '44',
                                                'value' => '', 'class' => 'mws-textinput', 'label' => false));
                                            ?>
                                            <span class="gray_comment">The name displayed to buyers on Amazon</span> </div>
                                    </div>
                                    <div class="width_79 f_left">
                                        <div class="acc_form_1">&nbsp;</div>
                                        <div class="acc_form_2">
                                            <input type="submit" name="" value="Submit" class="sea_btn" />
                                        </div>
                                    </div>
                                </div>
                                <?php echo $form->end(); ?>
                                <?php
                            }
                            ?>
                            <?php
                            if (isset($ProductReviews) and ($ProductReviews)) {
                                foreach ($ProductReviews as $ProductReview) {
                                    ?>
                                    <div class="cust_review_pannel">
                                        <h2><?php echo $ProductReview['ProductReview']['title']; ?> </h2>
                                        <p><b>By</b>
                                            <?php
                                            echo $html->link($ProductReview['ProductReview']['user']['name'], array('controller' => 'users', 'action' => 'profile', $ProductReview['ProductReview']['user']['slug']), array('class' => 'brown_link'));
                                            ?><span style="color:#666; margin-left:10px;">(<?php echo $ProductReview['ProductReview']['Purchase']; ?>)</span>
                                        <div class="rating_<?php echo $ProductReview['ProductReview']['rating']; ?>  f_left"></div>
                                        <p><b>Date : </b><?php echo date("d F Y", strtotime($ProductReview['ProductReview']['created'])); ?></p>
                                        <p><?php echo $ProductReview['ProductReview']['review']; ?></p>
                                        <div class="def_div">
                                            <p id="M<?php echo $ProductReview['ProductReview']['id']; ?>ProductReview">
                                                <b>Was this review helpful to you?</b>
                                                <a href="javascript:void();" class="green helpfull" name="ProductReview" coords="<?php echo $ProductReview['ProductReview']['id']; ?>" accesskey="1"><b>Yes</b></a> 
                                                or 
                                                <a href="javascript:void();" name="ProductReview" coords="<?php echo $ProductReview['ProductReview']['id']; ?>"   class="red helpfull" accesskey="0"><b>No</b></a>
                                            </p>
                                            <p><?php echo $ProductReview['ProductReview']['yes_helpfulls']; ?> of <?php echo $ProductReview['ProductReview']['total_helpfulls']; ?> people found the following review helpful </p>
                                        </div>
                                        <?php
                                    }
                                } else {
                                    echo "No reviews yet about this Item!";
                                }
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
                <script type="text/javascript">
                    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
                </script> 
                <script type="text/javascript">
                    eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(9).a(b(){$(\'.6-1\').7({c:\'d/e/f.g\',8:1});$(\'.6-2\').7({8:3});$(\'.6-3\').7({h:i,8:0.5});$(\'.6-4\').7({j:k})});',21,21,'||||||item|epicZoom|magnification|document|ready|function|largeImage|images|_demo_only|1_large|jpg|size|250|hideCursor|false'.split('|'),0,{}))
                </script> 
            </div>
            <?php
        }
        ?>
    </div>
    <div class="clear"></div>
